/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('ims_crl_tpshop_config2', {
    id: {
      type: DataTypes.INTEGER(10),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    title: {
      type: DataTypes.STRING(250),
      allowNull: false
    },
    name: {
      type: DataTypes.STRING(250),
      allowNull: false,
      unique: true
    },
    val: {
      type: DataTypes.STRING(500),
      allowNull: false
    },
    sort: {
      type: DataTypes.INTEGER(10),
      allowNull: false,
      defaultValue: '0'
    },
    description: {
      type: DataTypes.STRING(250),
      allowNull: false
    },
    type: {
      type: DataTypes.STRING(30),
      allowNull: false,
      defaultValue: 'input'
    }
  }, {
    tableName: 'ims_crl_tpshop_config2'
  });

  Model.associate = function() {

  }

  return Model;
};
